From 9712f3511823176370ef88a5c0a6c8fdbbf45c36 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 23 Jun 2009 11:26:22 +0100 Subject: [PATCH] VT-d: correct kill hvm_timer hvm_timer is created with the vector got from domain_irq_to_vector(), accordingly it should use the same vector to kill the timer. The patch corrects it in pci_clean_dpci_irqs(). Signed-off-by: Weidong Han --- xen/drivers/passthrough/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 867b6b0322..8c1653ffaa 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -216,7 +216,7 @@ static void pci_clean_dpci_irqs(struct domain *d) i = find_next_bit(hvm_irq_dpci->mapping, d->nr_pirqs, i + 1) ) { pirq_guest_unbind(d, i); - kill_timer(&hvm_irq_dpci->hvm_timer[irq_to_vector(i)]); + kill_timer(&hvm_irq_dpci->hvm_timer[domain_irq_to_vector(d, i)]); list_for_each_safe ( digl_list, tmp, &hvm_irq_dpci->mirq[i].digl_list ) -- 2.30.2